import os

from peewee import SqliteDatabase
from config import project_root

# 配置数据库
DATABASE_URL = os.path.join(project_root, "data", "db", "rag.db")
DB = SqliteDatabase(DATABASE_URL)
DB.connect(reuse_if_open=True)
